package com.ruoyi.order.controller;

import com.ruoyi.order.service.OrderRemoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/inner/order")
public class InternalOrderController {

    @Autowired
    private OrderRemoteService orderRemoteService;

    @GetMapping("/create")
    public String createOrder(@RequestParam("userId") String userId) {
        return orderRemoteService.createOrder(userId);
    }
}
